import router from '@/router/index'
import {limitCalculate} from '@/api/home'
const api = ()  => {
    limitCalculate()
}
router.beforeEach(async (to, from, next) => {
    const token = localStorage.getItem('token')
  // 每次跳转页面上传周期额度计算
    if (token) {
        api()
    }
    next()
})
